#ifndef SHIP_H
#define SHIP_H

#include <stdio.h>
#include <list>
using namespace std;

#ifdef __APPLE__
#include <OpenGL/OpenGL.h>
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif

extern GLuint textureID;

class ship{
	private:
	public:
		float x,y;
		int num_shot;
		int max_shot;
		list<class bullet*>  b;
		//  public:
		ship(float _x, float _y);
		void move_to_xy( float _x, float _y );
		int move_xy( float _x, float _y, float maxx, float minx, float maxy, float miny );
		void fire();
		void render();
		void print_atributes();
};

class bullet{
	public:
		float x,y;
		bullet( float _x, float _y );
		void render();
		void doubleRender();
		int move_xy( float _x, float _y, float maxx, float minx, float maxy, float miny );
		void move_to_xy( float _x, float _y);
	private:
};

#endif

